package e.odbo.data.generator;

public class TelephoneGenerator extends Generator<String>{

    private static String[] telFirst="134,135,136,137,138,139,150,151,152,157,158,159,130,131,132,155,156,133,153,188,189,186,187,181,182,180,183,185,184".split(",");

    @Override
    public String generator() {
        int index = INT.generator(telFirst.length - 1);
        String first = telFirst[index];
        String second = String.valueOf(INT.generator(888) + 10000).substring(1);
        String thrid = String.valueOf(INT.generator( 9100) + 10000).substring(1);
        return first+second+thrid;
    }

    @Override
    public String getName() {
        return "Telephone";
    }
}
